<template>
  <TopNavBar title="订单记录" type="back" />
  <div class="ai-follow-order">
    <div class="order-assets">
      <div class="asset-row"><span>跟投帳戶資產(USD)</span><span>0 (USD)</span></div>
      <div class="asset-row"><span>跟投收益(USD)</span><span class="green">+0(USD)</span></div>
      <div class="asset-row"><span>當日盈虧(USD)</span><span class="green">+0(USD)</span></div>
      <div class="asset-row"><span>可用(USD)</span><span>0(USD)</span></div>
      <div class="asset-row"><span>可提(USD)</span><span>0(USD)</span></div>
    </div>
    <div class="order-tabs">
      <div :class="['tab', {active: tab==='全部订单'}]" @click="tab='全部订单'">全部订单</div>
      <div :class="['tab', {active: tab==='进行中'}]" @click="tab='进行中'">进行中</div>
      <div :class="['tab', {active: tab==='已完成'}]" @click="tab='已完成'">已完成</div>
    </div>
    <div class="order-empty">
      <img class="empty-img" src="https://amfshe.top/assets/noData.40bd2e22.png" />
      <div class="empty-text">暫無數據</div>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue'
const tab = ref('全部订单')
</script>

<style scoped>
.ai-follow-order {
  background: #f6f8fa;
  min-height: 100vh;
  padding-bottom: 24px;
}
.order-assets {
  background: #fff;
  border-radius: 0 0 14px 14px;
  margin: 0 0 12px 0;
  padding: 18px 18px 8px 18px;
  font-size: 14px;
  line-height: 2.2;
  color: #888;
}
.asset-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.green {
  color: #0bb07b;
}
.order-tabs {
  display: flex;
  background: #fff;
  border-radius: 24px;
  margin: 0 16px 0 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.04);
}
.tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 16px;
  color: #222;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.tab.active {
  background: #222;
  color: #fff;
  font-weight: 700;
}
.order-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
}
.empty-img {
  width: 120px;
  height: 120px;
  margin-bottom: 12px;
}
.empty-text {
  color: #888;
  font-size: 16px;
}
</style> 